package com.top.vueservice.dao;

import com.top.vueservice.entities.Params;
import com.top.vueservice.entities.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDao {
    public Product getProById(@Param("lId") Long lId);
    public Integer addPro(Product product);
    public List<Product> getAll();
    public List<Product> getAllByPage(Params params);
    public Integer getTotalCount(Params params);
    public Integer updateProById(Product product);
    public Integer delProById(Product product);
}
